<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="./rem.js"></script> -->
    <script src="./flexible.js"></script>
    <style>
        *{
            margin:0;
            padding:0;
        }
        header{
            width:10rem;
            height:1.3333rem;
            background:red;
            display: flex;
          
        }
        .left{
            flex:1;
            /* 
            项目上
            flex
                flex-grow
                flex-shrink
                flex-basis
             */
            background: blue;
        }
        .right{
            flex:4;
            background: rgb(27, 27, 36);
        }
        .main{
            width:10rem;
            display: flex;
            flex-wrap: wrap;
        }
        .main div{
            width:50%;
            height:200px;
            background: rgb(221, 166, 16);
        }
        .main div:nth-child(2n){
            background: rgb(134, 120, 57);
        }
    </style>
</head>
<body>
    <header>
        <div class="left"></div>
        <div class="right"></div>
    </header>
    <section class="main">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
    </section>
</body>
</html>